﻿<Window 
    x:Class="Microsoft.Samples.Office.UnifiedCommunications.Gadget.DesktopContactWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2006" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:presence="clr-namespace:Microsoft.Samples.Office.UnifiedCommunications.PresenceControls;assembly=WPFMOCPresenceControls"
    mc:Ignorable="d"
    Height="20" 
    Width="100"
    Style="{StaticResource ContactWindowTemplate}"
    WindowStyle="None"
    AllowsTransparency="True"
    ResizeMode="NoResize"
    SnapsToDevicePixels="True">
       
    <Grid x:Name="gridContact" HorizontalAlignment="Stretch" VerticalAlignment="Center"> 

        <Grid Width="Auto" Height="Auto" x:Name="gridContent">
            <Rectangle Stroke="{x:Null}" RadiusX="2" RadiusY="2" Width="Auto" Height="Auto">
                <Rectangle.Fill>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFDAE3EF" Offset="0"/>
                        <GradientStop Color="#FFE2EBF1" Offset="1"/>
                    </LinearGradientBrush>
                </Rectangle.Fill>
            </Rectangle>
            
            <presence:Persona x:Name="personaContact" UseXAMLPresenceImages="True" HorizontalAlignment="Left" 
                              VerticalAlignment="Center" Margin="2,2,0,2" Height="14" Width="14"/>

            <Grid x:Name="gridName" HorizontalAlignment="Left" VerticalAlignment="Center"
                  Width="Auto" Height="Auto" Margin="20,0,0,0">
                <TextBlock Text="{Binding Path=Text, ElementName=txtName, Mode=Default}" Margin="-.5,-1,0,0"
                    TextWrapping="Wrap" Foreground="#FFFFFFFF" FontFamily="Arial" FontSize="11" FontWeight="Bold" />
                <TextBlock x:Name="txtName" TextWrapping="Wrap" Foreground="#FF3D4F73" 
                    FontFamily="Arial" FontSize="11" FontWeight="Bold"/>
            </Grid>
        </Grid>

        <Grid Width="Auto" Height="Auto" x:Name="gridNotification" Visibility="Collapsed">
            <Rectangle x:Name="rectangleNotification" Stroke="{x:Null}" RadiusX="2" RadiusY="2" 
                Width="Auto" Height="Auto" Opacity="0.9" Fill="#FFDAE3EF">
            </Rectangle>
            <TextBlock Text="{Binding Path=Text, ElementName=txtNotification, Mode=Default}" 
                TextWrapping="Wrap" Foreground="Black" 
                HorizontalAlignment="Center" VerticalAlignment="Center" TextAlignment="Center"
                FontFamily="Arial" FontSize="12" FontWeight="Bold" Margin="-.5,-1,0,0"/>
            <TextBlock x:Name="txtNotification" TextWrapping="Wrap" Foreground="White" 
                HorizontalAlignment="Center" VerticalAlignment="Center" TextAlignment="Center"
                FontFamily="Arial" FontSize="12" FontWeight="Bold"/>
        </Grid>
    </Grid>
</Window>
